package priv.mill.server;
import java.util.List;

import priv.mill.entry.<%=xia2Pasic(tableName)%>;

public interface <%=xia2Pasic(tableName)%>Service {
	//根据Id查找
	<%=xia2Pasic(tableName)%> get<%=xia2Pasic(tableName)%>ById(Integer <%=xia2TuoFeng(tableName)%>Id);
	
	<%=xia2Pasic(tableName)%> get<%=xia2Pasic(tableName)%>ByEntry(<%=xia2Pasic(tableName)%> <%=xia2TuoFeng(tableName)%>);
	
	List<<%=xia2Pasic(tableName)%>> get<%=xia2Pasic(tableName)%>sByPage(<%=xia2Pasic(tableName)%> <%=xia2TuoFeng(tableName)%>);
	
	int update<%=xia2Pasic(tableName)%>(<%=xia2Pasic(tableName)%> <%=xia2TuoFeng(tableName)%>);
	
	int insert<%=xia2Pasic(tableName)%>(<%=xia2Pasic(tableName)%> <%=xia2TuoFeng(tableName)%>);
		
	int delete<%=xia2Pasic(tableName)%>(Integer <%=xia2TuoFeng(tableName)%>Id);
}
